package com.lbm.baseclass.service;

import java.util.List;
import java.util.Map;
import com.lbm.baseclass.exception.ServiceException;
import com.lbm.baseclass.model.BaseEntity;

public interface IBaseService {
	public void saveOrUpdateVO(BaseEntity vo) throws ServiceException;
	@SuppressWarnings("rawtypes")
	public void saveOrUpdateBatchVO(List dataList) throws ServiceException;
	public void deleteVO(BaseEntity vo, String id) throws ServiceException;
	@SuppressWarnings("rawtypes")
	public void deleteBatchVO(List dataList) throws ServiceException;
	public BaseEntity getVO(BaseEntity vo, String id) throws ServiceException;
	@SuppressWarnings("rawtypes")
	public List getPageDataByHQL(String hql, int page_size, int pageNo, Object... object) throws ServiceException;
	public int getDataTotalNum(String hql, Object... filter) throws ServiceException;
	public int getTotalNumBySQL(String sql, Object... args) throws ServiceException;
	@SuppressWarnings("rawtypes")
	public List getValueObjectsByHQL(String hql) throws ServiceException;
	public List<Map<String, Object>> queryForPagedListBySQL(String sql, int page, int rows, Object... args) throws ServiceException;
	public String getMenus(final String flag,final String... roleid) throws ServiceException;
	public List<Map<String, Object>> queryForListBySQL(String sql)
			throws ServiceException;
}
